package com.sino.operation.service.business;

import com.sino.operation.dto.Dto;
import com.sino.operation.dto.out.NetHandleEntity;
import com.sino.operation.entity.BizOperateLog;
import com.sino.operation.entity.BizTranslist;
import com.sino.operation.entity.SysAbMessage;
import com.sino.operation.peripheral.esc.request.NetHandle;
import com.sino.operation.util.PersistenceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Title: Exec_710301
 * @Description:
 * @Author dengls
 * @date 2021/10/21 10:36
 */
@Slf4j
public class Exec_710301 extends  BaseAction{

    public Exec_710301(Map varMap, BizTranslist bizTranslist, SysAbMessage sysAbMessage, BizOperateLog bizOperateLog, Object registerTable, Object receiveParam) {
        super(varMap, bizTranslist, sysAbMessage,bizOperateLog, registerTable, receiveParam);
    }

    public Exec_710301(String journalNo,SysAbMessage sysAbMessage){
        super(journalNo,sysAbMessage);
    }
    @Override
    public PersistenceUtil executeReception() throws Exception {
        return null;
    }

    @Override
    public PersistenceUtil executeAuth() throws Exception {
        return null;
    }

    @Override
    public PersistenceUtil executeNetwork() throws Exception {
        return null;
    }

    @Override
    public PersistenceUtil executeBack() throws Exception {
        return null;
    }

    @Override
    public Dto executeGetTaskList(NetHandle netHandle){
        Integer pageIndex = netHandle.getPage();//页数
        Integer pageSize = netHandle.getPageSize();//条数
        String tellerNo = netHandle.getTellerNo();
        String start = netHandle.getOperateFrom();
        String end = netHandle.getOperateTo();
        String printNum = netHandle.getPrintNum();
        String kernelNo = netHandle.getKernelNo();
        String journalNo = netHandle.getJournalNo();
        String transState = netHandle.getTransState();
        String orgCode = netHandle.getOrgCode();
        String clientNo = netHandle.getClientNo();
        String clientAccountName = netHandle.getClientAccountName();
        String clientAccountNo = netHandle.getClientAccountNo();
//        int count = transListService.getTransListByNetHandleCount(tellerNo, start, end, printNum, kernelNo, journalNo, transState, orgCode);
        Dto dto = new Dto();
//        if (count > 0) {
//            Integer startCount = 0;
//            Integer endCount = 0;
//            if (pageIndex != null && pageSize != null && pageIndex > 0 && pageSize > 0) {
//                startCount = pageSize * (pageIndex - 1);
//                endCount = pageSize * pageIndex;
//            }
//            List<NetHandleEntity> data = transListService.getTransListByNetHandleList(tellerNo, start, end, printNum, kernelNo, journalNo, transState, orgCode, startCount, endCount);
//            dto.setCount(count);
//            dto.setData(data);
//        }
        return dto;
    }

    @Override
    public PersistenceUtil executeTerminal() throws Exception {
        return null;
    }

    @Override
    public Object executeTotalEntryTask() throws Exception {
        return null;
    }

    @Override
    public Object executeAuthTask() throws Exception {
        return null;
    }

    @Override
    public PersistenceUtil executeCharge() throws Exception {
        return null;
    }
}
